package com.sk.cardeal.entity;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by sk on 2018/1/20.
 */

public class OrderForm implements Parcelable {

    /**
     * id : a1e75c17dc7146b2b5b5c5a304b24b67
     * cardNumber : 苏AK7F10
     * name : 刘佳佳
     * phone : 18860858018
     * conventionTime : 2018-01-18 15:00
     * conventionTypeId : 96a50ca8e4ab461191c66d71aaf41f81
     * state : 0
     * createTime : 2018-01-18 15:20:33.0
     * isdel : 0
     * shopId : 402880eb60d8b87a0160d8bb2c450001
     * customerId : 4379ac58c0694576a997a5b8863e9e29
     * typeName : 总成修理
     * orgName : null
     * address : null
     */

    private String id;
    private String cardNumber;
    private String name;
    private String phone;
    private String conventionTime;
    private String conventionTypeId;
    private int state;
    private String createTime;
    private int isdel;
    private String shopId;
    private String customerId;
    private String typeName;
    private String orgName;
    private String address;
    private String note;

    public String getNote() {
        return note;
    }

    public void setNote(String note) {
        this.note = note;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getCardNumber() {
        return cardNumber;
    }

    public void setCardNumber(String cardNumber) {
        this.cardNumber = cardNumber;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getConventionTime() {
        return conventionTime;
    }

    public void setConventionTime(String conventionTime) {
        this.conventionTime = conventionTime;
    }

    public String getConventionTypeId() {
        return conventionTypeId;
    }

    public void setConventionTypeId(String conventionTypeId) {
        this.conventionTypeId = conventionTypeId;
    }

    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public int getIsdel() {
        return isdel;
    }

    public void setIsdel(int isdel) {
        this.isdel = isdel;
    }

    public String getShopId() {
        return shopId;
    }

    public void setShopId(String shopId) {
        this.shopId = shopId;
    }

    public String getCustomerId() {
        return customerId;
    }

    public void setCustomerId(String customerId) {
        this.customerId = customerId;
    }

    public String getTypeName() {
        return typeName;
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }

    public String getOrgName() {
        return orgName;
    }

    public void setOrgName(String orgName) {
        this.orgName = orgName;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public OrderForm() {
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.id);
        dest.writeString(this.cardNumber);
        dest.writeString(this.name);
        dest.writeString(this.phone);
        dest.writeString(this.conventionTime);
        dest.writeString(this.conventionTypeId);
        dest.writeInt(this.state);
        dest.writeString(this.createTime);
        dest.writeInt(this.isdel);
        dest.writeString(this.shopId);
        dest.writeString(this.customerId);
        dest.writeString(this.typeName);
        dest.writeString(this.orgName);
        dest.writeString(this.address);
        dest.writeString(this.note);
    }

    protected OrderForm(Parcel in) {
        this.id = in.readString();
        this.cardNumber = in.readString();
        this.name = in.readString();
        this.phone = in.readString();
        this.conventionTime = in.readString();
        this.conventionTypeId = in.readString();
        this.state = in.readInt();
        this.createTime = in.readString();
        this.isdel = in.readInt();
        this.shopId = in.readString();
        this.customerId = in.readString();
        this.typeName = in.readString();
        this.orgName = in.readString();
        this.address = in.readString();
        this.note = in.readString();
    }

    public static final Creator<OrderForm> CREATOR = new Creator<OrderForm>() {
        @Override
        public OrderForm createFromParcel(Parcel source) {
            return new OrderForm(source);
        }

        @Override
        public OrderForm[] newArray(int size) {
            return new OrderForm[size];
        }
    };
}
